package com.qianyu.project.core.context.user;

/**
 * @author gs
 * @date create in 2021/1/8 22:16
 */
public interface FlowUserManager {

    /**
     * description: 获取用户 <br/>
     * author: gs   <br/>
     * date: 2021/1/8 <br/>
     * params: [] <br/>
     * return: com.qianyu.project.core.context.user.SysUser
     */
    SysUser getFlowUser();

    /**
     * description: 设置用户 <br/>
     * author: gs   <br/>
     * date: 2021/1/8 <br/>
     * params: [sysUser] <br/>
     * return: void
     */
    void pushSysUser(SysUser sysUser);

    /**
     * description: 设置当前登陆的用户 <br/>
     * author: gs   <br/>
     * date: 2021/1/28 <br/>
     * params: [sysUser] <br/>
     * return: void
     */
    void setSysUser(String username);

    /**
     * description: 移除用户 <br/>
     * author: gs   <br/>
     * date: 2021/1/28 <br/>
     * params: [username] <br/>
     * return: void
     */
    void removeSysUser(String username);
}
